package com.ruoyi.his.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.his.mapper.ReProvinceMapper;
import com.ruoyi.his.domain.ReProvince;
import com.ruoyi.his.service.IReProvinceService;

/**
 * 省Service业务层处理
 *
 * @author Alan
 * @date 2024-03-09
 */
@Service
public class ReProvinceServiceImpl implements IReProvinceService
{
    @Autowired
    private ReProvinceMapper reProvinceMapper;

    /**
     * 查询省
     *
     * @param code 省主键
     * @return 省
     */
    @Override
    public ReProvince selectReProvinceByCode(String code)
    {
        return reProvinceMapper.selectReProvinceByCode(code);
    }

    /**
     * 查询省列表
     *
     * @param reProvince 省
     * @return 省
     */
    @Override
    public List<ReProvince> selectReProvinceList(ReProvince reProvince)
    {
        return reProvinceMapper.selectReProvinceList(reProvince);
    }

    /**
     * 新增省
     *
     * @param reProvince 省
     * @return 结果
     */
    @Override
    public int insertReProvince(ReProvince reProvince)
    {
        return reProvinceMapper.insertReProvince(reProvince);
    }

    /**
     * 修改省
     *
     * @param reProvince 省
     * @return 结果
     */
    @Override
    public int updateReProvince(ReProvince reProvince)
    {
        return reProvinceMapper.updateReProvince(reProvince);
    }

    /**
     * 批量删除省
     *
     * @param codes 需要删除的省主键
     * @return 结果
     */
    @Override
    public int deleteReProvinceByCodes(String[] codes)
    {
        return reProvinceMapper.deleteReProvinceByCodes(codes);
    }

    /**
     * 删除省信息
     *
     * @param code 省主键
     * @return 结果
     */
    @Override
    public int deleteReProvinceByCode(String code)
    {
        return reProvinceMapper.deleteReProvinceByCode(code);
    }
}
